package com.cn.designpatterns.ex.concrete.template;

import java.util.Arrays;
import java.util.Collections;

/**
 * @author zhangyi
 * @date 2018/12/24 15:56
 */
public class Aec extends Template {

    public Aec(Object[] array) {
        super(array);
    }
    @Override
    public void sort(Object[] objs) {
        Collections.sort(Arrays.asList(objs),(x,y) -> {
            return (Integer)x - (Integer)y;
        });
    }
}
